package com.itheima.dao;

import com.itheima.domain.Traveller;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 旅客操作类
 */
public interface ITravellerDao {

    /**
     * 根据定单编号查询旅客信息
     * @param ordersid
     * @return
     */
    @Select("select * from traveller where id in (select travellerId from order_traveller where orderId=#{ordersId})")
    public List<Traveller> findTravellerByOrderId(String ordersid);

}
